package com.wx.service.impl;

import com.wx.dao.NewsDao;
import com.wx.model.NewsModel;
import com.wx.service.INews;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class INewsImpl implements INews {
    @Autowired
    NewsDao newsDao;



    @Override
    public List<NewsModel> conditionFind(NewsModel newsModel) {
        return newsDao.conditionFind(newsModel);
    }

    @Override
    public int getCont(NewsModel newsModel) {
        return newsDao.getCont(newsModel);
    }

    @Override
    public int newsAdd(NewsModel newsModel) {
        return newsDao.newsAdd(newsModel);
    }

    @Override
    public NewsModel newsFindById(NewsModel newsModel) {
        return newsDao.newsFindById(newsModel);
    }

    @Override
    public int newsUpdate(NewsModel newsModel) {
        return newsDao.newsUpdate(newsModel);
    }

    @Override
    public int newsDeleteById(NewsModel newsModel) {
        return newsDao.newsDeleteById(newsModel);
    }

    @Override
    public List<NewsModel> newsPageFind(NewsModel newsModel) {
        return newsDao.newsPageFind(newsModel);
    }

    @Override
    public List<NewsModel> newsTypeFindAll() {
        return newsDao.newsTypeFindAll();
    }
}
